# def func():
#     print(1111)
#     return 2222
#
# ret = func() #调用函数 打印函数里面的print  1111
# print(ret)  #2222
#


# def func(a, b):
#     return a + b
#
#
# ret = func(1, 2)
# print(ret)
#
# fn = lambda a, b: a + b
# print(fn(1, 2))

#将列表中的元素进行平方操作
lst=[1,2,3,4,5,6,7,8,9]
r=map(lambda x: x*x, lst)
result=list(r)
print(result)